home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Sep 89 / Y0049-Re Scroller problem-Sep89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.6 KB  |  47 lines  |  [TEXT/GEOL]

  1. Item    8638815                         14-Sept-89        10:03
  2.  
  3. From:   KNEPPER                         Knepper, Christopher
  4.  
  5. To:     CH0068                          CH DEV Hamilton, Bonaduz
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: Scroller problem
  10.  
  11. Hi Thomas,
  12.  
  13. >Can anyone tell me how the fields f1-f4 ,VertConstrain and HorzConstrain
  14. >influence the behaviour of this scroller ?
  15.  
  16. I've found that the best place to look to find out what the view's fields mean
  17. is in ViewTypes.r. For example, in the section which describes TScroller:
  18.  
  19.    case Scroller:
  20.    key literal longint = 'scrl';   // Template signature
  21.    pstring;// Class name, "TScroller"
  22.    align word;
  23.    bytenoVertScrollBar, VertScrollBar;
  24.    bytenoHorzScrollBar, HorzScrollBar;
  25.    longint;// Vertical maximum.
  26.    longint;// Horizontal maximum.
  27.    integer;// Vertical scrollunits.
  28.    integer;// Horizontal scroll units.
  29.    bytenoVertConstrain, VertConstrain;
  30.    bytenoHorzConstrain, HorzConstrain;
  31.    rect;   // Scroll bar offsets
  32.  
  33. You'll see that f1 = Vertical maximum, f2 = Horizontal maximum, f3 = Vertical
  34. scrollunits, and f4 = Horizontal scroll units.
  35.  
  36. Basically, VertConstrain and HorzConstrain indicate whether the translation
  37. values should be constrained to even multiples of f3 or f4.
  38.  
  39. When VertConstrain is enabled, then the vertical scrolling is constrained to f3
  40. units per click in the down or up arrow of the vertical scrollbar.
  41.  
  42. When HorzConstrain is enabled, then the vertical scrolling is constrained to f4
  43. units per click in the down or up arrow of the horizontal scrollbar.
  44.  
  45. -Chris
  46.  
  47.